//package com.plian.system.service.hr.employment.impl;
//
//import com.plian.system.constant.sys.FormTypeConstant;
//import com.plian.system.entity.hr.employment.EmploymentPlanCompletionEntity;
//import com.plian.system.mapper.hr.employment.EmploymentPlanCompletionMapper;
//import com.plian.system.mybatis.base.BaseServiceImpl;
//import com.plian.system.service.hr.employment.IEmploymentPlanCompletionService;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//import static com.plian.system.constant.sys.FormStatusConstant.UNREVIEWED;
//
///**
// * 劳动用工计划完成情况 服务实现类
// *
// * @author gangan
// * @since 2023-05-23
// */
//@Service
//public class EmploymentPlanCompletionServiceImpl extends BaseServiceImpl<EmploymentPlanCompletionMapper, EmploymentPlanCompletionEntity> implements IEmploymentPlanCompletionService {
//
//    @Override
//    @Transactional(rollbackFor = RuntimeException.class)
//    public boolean saveOrUpdate(EmploymentPlanCompletionEntity entity) {
//        if (entity.getId() == null) {
//            entity.setFormType(String.valueOf(FormTypeConstant.HR_EMPLOYMENT_PLAN_COMPLETION));
//            entity.setStatus(UNREVIEWED);
//        }
//        return super.saveOrUpdate(entity);
//    }
//}
